﻿#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

#endregion

namespace Thinxoft.XedusLive
{
    partial class XedusMenu : Form
    {
        public XedusMenu()
        {
            InitializeComponent();

         //   spyMovieViewer.Play();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Hide();
            //Close();
        }

        private void btnGrab_Click(object sender, EventArgs e)
        {
            this.Hide();
            //Close();
        }       

        private void btnGrab2_Click(object sender, EventArgs e)
        {
            btnGrab_Click(sender, e);
        }

        private void btnDoClose_Click(object sender, EventArgs e)
        {
            Hide();
            //Close();
        }

        private void btnOpenImage_Click(object sender, EventArgs e)
        {
      
        }

        private void btnOpenMovie_Click(object sender, EventArgs e)
        {
       
        }

        private void btnHelp_Click(object sender, EventArgs e)
        {
            Start.MainForm.menuItem5_Click(sender, e);
        }

        private void btnKillServer_Click(object sender, EventArgs e)
        {
            if (Start.ServerRunning)
            {
                panel1.BackgroundImage  = Properties.Resources.xedusMenu_startx;
                Start.MainForm.btnKill_Click(sender, e);
            }
            else
            {
                panel1.BackgroundImage = Properties.Resources.xedusMenu2;
                Start.StartServer();
            }
            Hide();
            
        }

        private void btnSampleSite_Click(object sender, EventArgs e)
        {
            Start.MainForm.btnDefault_Click(sender, e);
        }

        private void label2_Click(object sender, EventArgs e)
        {
        
        }

        private void label5_Click(object sender, EventArgs e)
        {
        
        }

        private void btnLaunchAdmin_Click(object sender, EventArgs e)
        {
            Start.AdminUI.Show();
        }

        private void btnShowLogInfo_Click(object sender, EventArgs e)
        {
            Start.XedusInfoUI.DisplayInfo();
        }

        private void btnRegister_Click(object sender, EventArgs e)
        {
            Start.MainForm.btnRegister_Click(sender, e);
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            Start.MainForm.btnConnect_Click(sender, e);
        }

        private void btnDisconnect_Click(object sender, EventArgs e)
        {
            Start.MainForm.menuItem1_Click(sender, e);
        }

        private void btnClose_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.ShutdownXedus();
        }

        

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void shutdownXedusToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void btnLaunchAdminLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.AdminUI.Show();
        }

        private void btnShowLogLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.XedusInfoUI.DisplayInfo();
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void startToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Start.ServerRunning)
                Start.StartServer();
        }

        private void stopToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Start.ServerRunning)
                Start.KillAll();
        }

        private void shutdownXedusToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Start.ShutdownXedus();
        }

        private void administrativeConsoleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Start.AdminUI.Show();
        }

        private void logFileViewerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Start.XedusInfoUI.DisplayInfo();
        }

        private void aboutXedusToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("iexplore", "http://www.xedus.net/sites/xedus/aboutme.aspx?type=index&userid=");
        }

        private void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("iexplore", "http://www.xedus.net/sites/xedus/help/onlinehelp.aspx?type=search&userid=");
        }

        private void indexToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("iexplore", "http://www.xedus.net/sites/xedus/help/onlinehelp.aspx?type=index7userid=");
        }

        private void registerToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.MainForm.btnRegister_Click(sender, e);
        }

        private void btnConnectLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.MainForm.btnConnect_Click(sender, e);
        }

        private void btnDisconnectLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Start.MainForm.menuItem1_Click(sender, e);
        }
    }
}